<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/21
 * Time: 15:57
 */
echo "9editor.php";
var_dump($_GET);
$fileName = $_GET['filename'];
$fileFullName = __DIR__."/c/".$fileName;
$c = file_get_contents($fileFullName);
var_dump($c);
$title = strstr($c,PHP_EOL,true);
$content = strstr($c,PHP_EOL);
?>
<meta charset="utf-8">
<form action="9editor_save.php" method="post">
    <input type="hidden" name="fileName" value="<?php echo $fileName ?>">
    标题：<input type="text" name="title" value="<?php echo $title; ?>"><br>
    内容：<textarea name="content"><?php echo $content ?></textarea><br>
    <input type="submit">

</form>
